export namespace Department {
  export interface DepartmentItem {
    id: string;
    FName: string;
    FParentId: string | null;
    FCreatedAt?: string;
    FUpdatedAt?: string;
    children?: DepartmentItem[]; // 树形结构子节点
  }

  export interface CreateDepartmentParams {
    FName: string;
    FParentId?: string | null;
  }

  export interface UpdateDepartmentParams {
    id: string;
    FName: string;
    FParentId?: string | null;
  }

  export interface DeleteDepartmentParams {
    FId: string;
  }
}
